home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Finder Dungeon / source code / MoreFiles 1.4.6 / Pascal Interfaces / Search.p < prev    next >
Encoding:
Text File  |  1997-06-28  |  1.8 KB  |  59 lines  |  [TEXT/MPS ]

  1. UNIT Search;
  2.  
  3. {    Apple Macintosh Developer Technical Support                                }
  4. {                                                                            }
  5. {    IndexedSearch and the PBCatSearch compatibility function.                }
  6. {    by Jim Luther, Apple Developer Technical Support Emeritus                }
  7. {                                                                            }
  8. {    File:        Search.p                                                    }
  9. {                                                                            }
  10. {    Copyright © 1992-1996 Apple Computer, Inc.                                }
  11. {    All rights reserved.                                                    }
  12. {                                                                            }
  13. {    You may incorporate this sample code into your applications without        }
  14. {    restriction, though the sample code has been provided "AS IS" and the    }
  15. {    responsibility for its operation is 100% yours.  However, what you are    }
  16. {    not permitted to do is to redistribute the source as "DSC Sample Code"    }
  17. {    after having made changes. If you're going to re-distribute the source,    }
  18. {    we require that you make it clear in the source that the code was        }
  19. {    descended from Apple Sample Code, but that you've made changes.            }
  20.  
  21.  
  22. INTERFACE
  23.  
  24.     USES
  25.         Types, Files;
  26.  
  27. {***************************************************************************}
  28.  
  29.  
  30.     FUNCTION IndexedSearch (pb: HParmBlkPtr;
  31.                                     dirID: LongInt): OSErr;
  32.  
  33.     FUNCTION PBCatSearchSyncCompat (paramBlock: HParmBlkPtr): OSErr;
  34.  
  35.     FUNCTION NameFileSearch (volName: StringPtr;
  36.                                     vRefNum: Integer;
  37.                                     fileName: Str255;
  38.                                     matches: FSSpecPtr;
  39.                                     reqMatchCount: LongInt;
  40.                                     VAR actMatchCount: LongInt;
  41.                                     newSearch: Boolean;
  42.                                     partial: Boolean): OSErr;
  43.  
  44.     FUNCTION CreatorTypeFileSearch (volName: StringPtr;
  45.                                     vRefNum: Integer;
  46.                                     creator: OSType;
  47.                                     fileType: OSType;
  48.                                     matches: FSSpecPtr;
  49.                                     reqMatchCount: LongInt;
  50.                                     VAR actMatchCount: LongInt;
  51.                                     newSearch: Boolean): OSErr;
  52.  
  53.  
  54. {***************************************************************************}
  55.  
  56.  
  57. IMPLEMENTATION
  58.  
  59. END.